<?php
	require('./base.php');

	$arr = array (
		"app_id" => GF_APPID,
		"timestamp" => date("Y-m-d H:i:s"),
		"version" => API_VERSION,
		"store_code" => BUSI_CODE,
		"trade_no" => "634040815163617726097278",
		//二选一
		// 1...
		"refund_down_trade_no" => "a2d35f2b-674c-4f34-9d0c-356728284deb",
		// 2...
		//"refund_trade_no" => "",

		"pay_channel" => "ALIPAY",
		"sign" => ""
	);

    $sign = getSign($arr);
    $arr["sign"] = $sign;

    $post_url = GF_API_URL_PREFIX.API_VERSION."/pay/refund_query";
    echo "接口地址:".$post_url."<br>";

    $result_arr = exec_curl($arr, $post_url);
    print_r("返回数据:".$result_arr);
?>